package com.wxq.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Jim
 * @date 1:44 下午 2022/4/10
 * @description web配置
 * @email:huwmz04153277@126.com
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    /**
     * 试图映射
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry){
        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
